.toggle-checkbox:checked {
    transform: translateX(1rem) !important;
    border-color: #3B82F6 !important;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: #3B82F6 !important;
}
.toggle-checkbox {
    transition: transform 0.2s ease-in-out, border-color 0.2s;
}
.toggle-label {
    transition: background-color 0.2s;
}
#chatHistory {
    padding-top: 2.5rem;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 1rem;
    }
    .config-panel {
        width: 100%;
        margin-top: 1rem;
    }
    .chat-history {
        min-height: 40vh;
        max-height: 60vh;
        flex-grow: 1;
    }
    .input-panel {
        margin-bottom: 1rem;
    }
    .welcome-message {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .welcome-message svg {
        width: 6rem;
        height: 6rem;
    }
}

/* 新增工具提示样式 */
.help-tooltip:hover .tooltip {
    display: block;
    opacity: 1;
}

/* 清空按钮样式调整 */
#clearUrlBtn {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

#clearUrlBtn.active {
    opacity: 1;
    pointer-events: auto;
}

/* 输入框非默认值时显示清空按钮 */
#ollamaUrl:not([value="http://localhost:11434"]) + #clearUrlBtn {
    opacity: 1;
    pointer-events: auto;
}

/* 重置按钮样式 */
.reset-defaults-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    transition: all 0.2s ease;
}

.reset-defaults-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reset-defaults-btn:active {
    transform: translateY(0);
}

.reset-defaults-btn svg {
    stroke: #ef4444;
} 